package com.ruoyi.commodity.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.commodity.domain.CommodityOrderSub;

/**
 * 商品订单子单Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-14
 */
public interface CommodityOrderSubMapper extends BaseMapper<CommodityOrderSub>
{
    /**
     * 查询商品订单子单
     *
     * @param id 商品订单子单主键
     * @return 商品订单子单
     */
    public CommodityOrderSub selectCommodityOrderSubById(String id);

    /**
     * 查询商品订单子单列表
     *
     * @param commodityOrderSub 商品订单子单
     * @return 商品订单子单集合
     */
    public List<CommodityOrderSub> selectCommodityOrderSubList(CommodityOrderSub commodityOrderSub);

    /**
     * 新增商品订单子单
     *
     * @param commodityOrderSub 商品订单子单
     * @return 结果
     */
    public int insertCommodityOrderSub(CommodityOrderSub commodityOrderSub);

    /**
     * 修改商品订单子单
     *
     * @param commodityOrderSub 商品订单子单
     * @return 结果
     */
    public int updateCommodityOrderSub(CommodityOrderSub commodityOrderSub);

    /**
     * 删除商品订单子单
     *
     * @param id 商品订单子单主键
     * @return 结果
     */
    public int deleteCommodityOrderSubById(String id);

    /**
     * 批量删除商品订单子单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCommodityOrderSubByIds(String[] ids);
}
